import request from '@/utils/request'

export function getEmployeeListAPI(params) {
  return request({
    url: '/park/sys/user',
    params
  })
}
//添加员工
export function createEmployeeAPI(data) {
    return request({
      url: `/park/sys/user`,
      method: 'POST',
      data
    })
}

//删除员工
export function delEmployeeAPI(id) {
    return request({
      url: `/park/sys/user/${id}`,
      method: 'DELETE'
    })
}

//编辑
export function editEmployeeAPI(data) {
    return request({
      url: `/park/sys/user`,
      method: 'PUT',
      data
    })
}

//重置密码 
export function resetPasswordAPI(data) {
    return request({
      url: `/park/sys/user/resetPwd`,
      method: 'PUT',
      data
    })
}
//角色关联的用户列表
export function getRoleListAPI() {
    return request({
      url: `/park/sys/role`,
      method: 'GET',
    })
  }